package com.zany.children.service;

import com.zany.children.vo.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherService {


    List<Teacher> getTeacherListPage(Map<String,Object> teacher);

    Integer getTeacherListPageCount(Map<String,Object> teacher);

    /**
     * 保存教师信息.
     * @param teacher
     * @return
     */
    Long saveTeacher(Teacher teacher,Long classId);


    /**
     * 修改教师信息.
     * @param teacher
     */
    void updateTeacher(Teacher teacher);


    /**
     * 通过id查询教师信息.
     * @param id
     * @return
     */
    Teacher getTeacherById(Long id);


    /**
     * 保存班与老师关系 。
     * @param classId
     * @param teaId
     * @param creater
     */
    void saveClassTeacherRela(Long classId,Long teaId,String creater);



    /**
     * 通过id删除老师.逻辑删除.
     * @param teaId
     */
    void deleteTeacherById(Long teaId);
}
